<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>使用像素值设置图像的左边</title>
    <style>
        img {
            position: absolute;
            left: 50px;
        }
    </style>
</head>

<body>
    <h1>This is a heading</h1>
    <img src="https://www.runoob.com/try/demo_source/logocss.gif" width="95" height="84">
</body>

</html>